﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using ZX.Web.UI.Controls;

namespace ZX.WebApp.KM
{
    public partial class GotoKM :BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           // string KMINDEX = ConfigurationManager.AppSettings["KMINDEX"].ToString().ToLower();
            string KMINDEX = this.GetCurrentHost + "/kM/index.aspx";
            var uid = this.UserId.Value.ToString();
            uid = ZX.KM.Core.Common.SecurityUtility.Encrypt(uid, web_url_key);
            uid = HttpUtility.UrlEncode(uid);
            ClientScript.RegisterClientScriptBlock(this.GetType(), "outputCRMUserID", "<script>USERID='" + uid + "'</script>");
             var url=KMINDEX+"?UserID="+uid+"&R="+DateTime.Now.ToString();
             Response.Write("<script>window.open('" + url + "');window.parent.$('#tabs').tabs('close', '知识管理门户');</script>");
        }
    }
}